all:
	@yarn build
	@cd dist && mv index.umd.min.js index.js &&\
     mv index.umd.min.js.map index.js.map &&\
     cp ../package.dist.json ./package.json &&\
     rm index.umd.js index.umd.js.map demo.html index.common.js index.common.js.map

publish:
	@cp README.md dist/
	@cd dist && npm publish --registry https://registry.npmjs.org/
